﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="VerIdea.aspx.cs" Inherits="MisIdeas.Ideas.VerIdea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="lblNombre" runat="server" Text="[Nombre]" Font-Bold="true" />
    <br />
    <br />
    <asp:Label ID="lblObjetivos" runat="server" Text="[Objetivos]" />
    <br />
    <br />
    <asp:Button ID="btnNuevoDetalle" runat="server" Text="Nuevo Detalle" 
        onclick="btnNuevoDetalle_Click" />
    <br />
    <br />
    <asp:GridView ID="gvDetalles" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataSourceID="odsDetalles" ForeColor="#333333" GridLines="None" 
        Width="100%">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="lblFecha" runat="server" Text='<%# Bind("MI_Fecha", "{0:dd/MM/yyyy}") %>' />
                    <br />
                    <br />
                    <asp:HyperLink ID="lbkEditar" runat="server" Text="Editar" NavigateUrl='<%# Bind("MI_IdeaDetalleID", "VerDetalle.aspx?ID={0}") %>' />
                    <br />
                    <br />
                    <asp:Panel ID="pnlContenido" runat="server">
                        <asp:Literal ID="ltContenido" runat="server" Text='<%# Bind("MI_Descripcion") %>'></asp:Literal>
                    </asp:Panel>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <asp:ObjectDataSource ID="odsDetalles" runat="server" 
        SelectMethod="TraerDetalles" TypeName="BLLMisIdeas.BLLIdeaDetalle">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="ideaID" QueryStringField="ID" 
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
